home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / x / volume3 / awm2 / part11 < prev    next >
Encoding:
Internet Message Format  |  1989-02-21  |  57.1 KB

  1. Path: uunet!lll-winken!ames!vsi1!wyse!mikew
  2. From: mikew@wyse.wyse.com (Mike Wexler)
  3. Newsgroups: comp.sources.x
  4. Subject: v03i027:  Ardent Window Manager, Patchlevel 9, Part11/12
  5. Message-ID: <2077@wyse.wyse.com>
  6. Date: 21 Feb 89 18:17:50 GMT
  7. Organization: Wyse Technology, San Jose
  8. Lines: 1615
  9. Approved: mikew@wyse.com
  10.  
  11. Submitted-by: kmw@ardent (Ken Wallich)
  12. Posting-number: Volume 3, Issue 27
  13. Archive-name: awm2/part11
  14.  
  15. #! /bin/sh
  16. # This is a shell archive.  Remove anything before this line, then unpack
  17. # it by saving it into a file and typing "sh file".  To overwrite existing
  18. # files, type "sh file -c".  You can also feed this as standard input via
  19. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  20. # will see the following message at the end:
  21. #        "End of archive 11 (of 12)."
  22. # Contents:  Beep.c CircleDown.c CircleUp.c Imakefile Lower.c XError.c
  23. #   bitmaps/hilite.bm bitmaps/twm.focus.bm bitmaps/twm.hilite.bm
  24. #   bitmaps/twm.iconify.bm bitmaps/twm.pull.bm bitmaps/twm.resize.bm
  25. #   bitmaps/twm.twm.bm errHndlr.c lex.l menus/eventstack.c
  26. #   menus/null_icon.h menus/rtlmenu.h menus/std_defs.h support.c
  27. #   twm.Xdefaults
  28. # Wrapped by mikew@wyse on Fri Feb 17 10:50:35 1989
  29. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  30. if test -f 'Beep.c' -a "${1}" != "-c" ; then 
  31.   echo shar: Will not clobber existing file \"'Beep.c'\"
  32. else
  33. echo shar: Extracting \"'Beep.c'\" \(2539 characters\)
  34. sed "s/^X//" >'Beep.c' <<'END_OF_FILE'
  35. X
  36. X
  37. X
  38. X#ifndef lint
  39. Xstatic char *rcsid_Beep_c = "$Header: /usr/graph2/X11.3/contrib/windowmgrs/awm/RCS/Beep.c,v 1.2 89/02/07 20:03:02 jkh Exp $";
  40. X#endif    lint
  41. X
  42. X#include "X11/copyright.h"
  43. X/*
  44. X *
  45. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  46. X *
  47. X * Copyright 1987 by Jordan Hubbard.
  48. X *
  49. X *
  50. X *                         All Rights Reserved
  51. X *
  52. X * Permission to use, copy, modify, and distribute this software and its
  53. X * documentation for any purpose and without fee is hereby granted,
  54. X * provided that the above copyright notice appear in all copies and that
  55. X * both that copyright notice and this permission notice appear in
  56. X * supporting documentation, and that the name of Ardent Computer
  57. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  58. X * pertaining to distribution of the software without specific, written
  59. X * prior permission.
  60. X *
  61. X */
  62. X
  63. X/*
  64. X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  65. X *
  66. X *                         All Rights Reserved
  67. X *
  68. X * Permission to use, copy, modify, and distribute this software and its
  69. X * documentation for any purpose and without fee is hereby granted,
  70. X * provided that the above copyright notice appear in all copies and that
  71. X * both that copyright notice and this permission notice appear in
  72. X * supporting documentation, and that the name of Digital Equipment
  73. X * Corporation not be used in advertising or publicity pertaining to
  74. X * distribution of the software without specific, written prior permission.
  75. X *
  76. X *
  77. X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  78. X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  79. X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  80. X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  81. X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  82. X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  83. X * SOFTWARE.
  84. X */
  85. X
  86. X
  87. X
  88. X/*
  89. X * MODIFICATION HISTORY
  90. X *
  91. X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
  92. X */
  93. X
  94. X#ifndef lint
  95. Xstatic char *sccsid = "@(#)Beep.c    3.8    1/24/86";
  96. X#endif
  97. X
  98. X#include "awm.h"
  99. X
  100. X/*ARGSUSED*/
  101. XBoolean Beep(window, mask, button, x, y)
  102. XWindow window;                          /* Event window. */
  103. Xint mask;                               /* Button/key mask. */
  104. Xint button;                           /* Button event detail. */
  105. Xint x, y;                               /* Event mouse position. */
  106. X{
  107. X    Entry("Beep")
  108. X
  109. X    XBell(dpy, VOLUME_PERCENTAGE(Volume));
  110. X    Leave(FALSE)
  111. X}
  112. END_OF_FILE
  113. if test 2539 -ne `wc -c <'Beep.c'`; then
  114.     echo shar: \"'Beep.c'\" unpacked with wrong size!
  115. fi
  116. # end of 'Beep.c'
  117. fi
  118. if test -f 'CircleDown.c' -a "${1}" != "-c" ; then 
  119.   echo shar: Will not clobber existing file \"'CircleDown.c'\"
  120. else
  121. echo shar: Extracting \"'CircleDown.c'\" \(2689 characters\)
  122. sed "s/^X//" >'CircleDown.c' <<'END_OF_FILE'
  123. X
  124. X
  125. X
  126. X#ifndef lint
  127. Xstatic char *rcsid_CircleDown_c = "$Header: /usr/graph2/X11.3/contrib/windowmgrs/awm/RCS/CircleDown.c,v 1.2 89/02/07 20:04:31 jkh Exp $";
  128. X#endif    lint
  129. X
  130. X#include "X11/copyright.h"
  131. X/*
  132. X *
  133. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  134. X *
  135. X * Copyright 1987 by Jordan Hubbard.
  136. X *
  137. X *
  138. X *                         All Rights Reserved
  139. X *
  140. X * Permission to use, copy, modify, and distribute this software and its
  141. X * documentation for any purpose and without fee is hereby granted,
  142. X * provided that the above copyright notice appear in all copies and that
  143. X * both that copyright notice and this permission notice appear in
  144. X * supporting documentation, and that the name of Ardent Computer
  145. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  146. X * pertaining to distribution of the software without specific, written
  147. X * prior permission.
  148. X *
  149. X */
  150. X
  151. X/*
  152. X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  153. X *
  154. X *                         All Rights Reserved
  155. X *
  156. X * Permission to use, copy, modify, and distribute this software and its
  157. X * documentation for any purpose and without fee is hereby granted,
  158. X * provided that the above copyright notice appear in all copies and that
  159. X * both that copyright notice and this permission notice appear in
  160. X * supporting documentation, and that the name of Digital Equipment
  161. X * Corporation not be used in advertising or publicity pertaining to
  162. X * distribution of the software without specific, written prior permission.
  163. X *
  164. X *
  165. X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  166. X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  167. X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  168. X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  169. X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  170. X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  171. X * SOFTWARE.
  172. X */
  173. X
  174. X
  175. X
  176. X/*
  177. X * MODIFICATION HISTORY
  178. X *
  179. X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
  180. X * 001 -- Loretta Guarino Reid, DEC Ultrix Engineering Group,
  181. X    Western Software Lab. Converted to X11.
  182. X */
  183. X
  184. X#ifndef lint
  185. Xstatic char *sccsid = "@(#)CircleDown.c    3.8    1/24/86";
  186. X#endif
  187. X
  188. X#include "awm.h"
  189. X
  190. X/*ARGSUSED*/
  191. XBoolean CircleDown(window, mask, button, x, y)
  192. XWindow window;                          /* Event window. */
  193. Xint mask;                               /* Button/key mask. */
  194. Xint button;                           /* Button event detail. */
  195. Xint x, y;                               /* Event mouse position. */
  196. X{
  197. X    Entry("CircleDown")
  198. X
  199. X    XCirculateSubwindowsDown(dpy, RootWindow(dpy, scr));
  200. X    Leave(FALSE)
  201. X}
  202. END_OF_FILE
  203. if test 2689 -ne `wc -c <'CircleDown.c'`; then
  204.     echo shar: \"'CircleDown.c'\" unpacked with wrong size!
  205. fi
  206. # end of 'CircleDown.c'
  207. fi
  208. if test -f 'CircleUp.c' -a "${1}" != "-c" ; then 
  209.   echo shar: Will not clobber existing file \"'CircleUp.c'\"
  210. else
  211. echo shar: Extracting \"'CircleUp.c'\" \(2671 characters\)
  212. sed "s/^X//" >'CircleUp.c' <<'END_OF_FILE'
  213. X
  214. X
  215. X
  216. X#ifndef lint
  217. Xstatic char *rcsid_CircleUp_c = "$Header: /usr/graph2/X11.3/contrib/windowmgrs/awm/RCS/CircleUp.c,v 1.2 89/02/07 20:04:35 jkh Exp $";
  218. X#endif    lint
  219. X
  220. X#include "X11/copyright.h"
  221. X/*
  222. X *
  223. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  224. X *
  225. X * Copyright 1987 by Jordan Hubbard.
  226. X *
  227. X *
  228. X *                         All Rights Reserved
  229. X *
  230. X * Permission to use, copy, modify, and distribute this software and its
  231. X * documentation for any purpose and without fee is hereby granted,
  232. X * provided that the above copyright notice appear in all copies and that
  233. X * both that copyright notice and this permission notice appear in
  234. X * supporting documentation, and that the name of Ardent Computer
  235. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  236. X * pertaining to distribution of the software without specific, written
  237. X * prior permission.
  238. X *
  239. X */
  240. X
  241. X/*
  242. X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  243. X *
  244. X *                         All Rights Reserved
  245. X *
  246. X * Permission to use, copy, modify, and distribute this software and its
  247. X * documentation for any purpose and without fee is hereby granted,
  248. X * provided that the above copyright notice appear in all copies and that
  249. X * both that copyright notice and this permission notice appear in
  250. X * supporting documentation, and that the name of Digital Equipment
  251. X * Corporation not be used in advertising or publicity pertaining to
  252. X * distribution of the software without specific, written prior permission.
  253. X *
  254. X *
  255. X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  256. X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  257. X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  258. X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  259. X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  260. X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  261. X * SOFTWARE.
  262. X */
  263. X
  264. X
  265. X
  266. X/*
  267. X * MODIFICATION HISTORY
  268. X *
  269. X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
  270. X * 001 -- Loretta Guarino Reid, DEC Ultrix Engineering Group,
  271. X    Western Software Lab. Converted to X11.
  272. X */
  273. X
  274. X#ifndef lint
  275. Xstatic char *sccsid = "@(#)CircleUp.c    3.8    1/24/86";
  276. X#endif
  277. X
  278. X#include "awm.h"
  279. X
  280. X/*ARGSUSED*/
  281. XBoolean CircleUp(window, mask, button, x, y)
  282. XWindow window;                          /* Event window. */
  283. Xint mask;                               /* Button/key mask. */
  284. Xint button;                           /* Button event detail. */
  285. Xint x, y;                            /* Event mouse position. */
  286. X{
  287. X    Entry("CircleUp")
  288. X
  289. X    XCirculateSubwindowsUp(dpy, RootWindow(dpy, scr));
  290. X    Leave(FALSE)
  291. X}
  292. END_OF_FILE
  293. if test 2671 -ne `wc -c <'CircleUp.c'`; then
  294.     echo shar: \"'CircleUp.c'\" unpacked with wrong size!
  295. fi
  296. # end of 'CircleUp.c'
  297. fi
  298. if test -f 'Imakefile' -a "${1}" != "-c" ; then 
  299.   echo shar: Will not clobber existing file \"'Imakefile'\"
  300. else
  301. echo shar: Extracting \"'Imakefile'\" \(2988 characters\)
  302. sed "s/^X//" >'Imakefile' <<'END_OF_FILE'
  303. X       MENU_LIB = menus
  304. X      MENU_ARCH = $(MENU_LIB)/rtlmenu.a
  305. X     NEATEN_LIB = /grgr/neaten
  306. X    NEATEN_ARCH = $(NEATEN_LIB)/neaten.a
  307. X  SYS_LIBRARIES = -ll -lm
  308. X      OTHERSRCS = gram.y lex.l
  309. X         YFLAGS = -d
  310. X         HFILES = awm.h neaten.def.h neaten.ext.h support.h
  311. X
  312. X# The following defines can be added to the approprate DEFINES macro
  313. X# (see below) to enable additional features.
  314. X#
  315. X# -DCONSOLE if you want output (stderr and stdout) to go to the system console.
  316. X#
  317. X# -DWMSTATE if you want the XA_WM_STATE atom to reflect the state of each
  318. X#     top-level window (I.E. iconified, not iconified, etc).
  319. X#
  320. X# -DRAINBOW if you want to be able to specify border colors on a client or
  321. X#     class basis.
  322. X#
  323. X# -DLOCKSCR if for some reason you want a lockscreen function built into
  324. X#     the window manager. Could be just as easily done by invoking a program,
  325. X#     but some like to put all their eggs in one basket.
  326. X
  327. X# Use these macros if you want the RTL Neaten package.
  328. X# Also make sure that NEATEN_LIB points to the right place. See the README
  329. X# file for instructions (though you can just define this and give it a shot).
  330. X#       DEFINES = -DSYSFILE=\"$(AWMDIR)$(PATHSEP)system.awmrc\" -DNEATEN
  331. X#       LOCAL_LIBRARIES = $(NEATEN_ARCH) $(MENU_ARCH) $(XMULIB) $(XLIB)
  332. X
  333. X
  334. X# Use these macros if you don't want the RTL Neaten package.
  335. X        DEFINES = -DSYSFILE=\"$(AWMDIR)$(PATHSEP)system.awmrc\" -DWMSTATE -DLOCKSCR
  336. X        LOCAL_LIBRARIES = $(MENU_ARCH) $(XMULIB) $(XLIB)
  337. X        LINTLIBS = $(LINTXLIB)
  338. X
  339. XSRCS=    globals.c Beep.c Bindings.c CircleDown.c CircleUp.c\
  340. X    Cursors.c Focus.c GetButton.c  GridBox.c Iconify.c Icons.c Lower.c\
  341. X    Menu.c Move.c MoveOpaque.c NewIconify.c Pause.c Push.c Error.c\
  342. X    Raise.c Refresh.c Resize.c Restart.c RubberBand.c StoreBox.c \
  343. X    StoreZap.c XError.c awm.c FocusChng.c Titlebar.c errHndlr.c \
  344. X    Grab.c menu_sup.c Gadget.c support.c exp_path.c Neaten.c \
  345. X    lockscreen.c Lock.c
  346. X
  347. XOBJS=    gram.o lex.o globals.o Beep.o Bindings.o CircleDown.o CircleUp.o\
  348. X    Cursors.o Focus.o GetButton.o GridBox.o Iconify.o Icons.o Lower.o\
  349. X    Menu.o Move.o MoveOpaque.o NewIconify.o Pause.o Push.o Error.o\
  350. X    Raise.o Refresh.o Resize.o Restart.o RubberBand.o StoreBox.o \
  351. X    StoreZap.o XError.o awm.o FocusChng.o Titlebar.o errHndlr.o \
  352. X    Grab.o menu_sup.o Gadget.o support.o exp_path.o Neaten.o \
  353. X    lockscreen.o Lock.o
  354. X
  355. XComplexProgramTarget(awm)
  356. XNormalLintTarget($(SRCS) gram.c lex.c)
  357. X
  358. XInstallNonExec(system.awmrc, $(AWMDIR))
  359. X
  360. X$(MENU_ARCH)::
  361. X    @echo Making menu package...
  362. X    @(cd $(MENU_LIB); make CC=$(CC) CFLAGS="$(CFLAGS)")
  363. X    @echo done.
  364. X
  365. X$(NEATEN_ARCH)::
  366. X    cp Makefile.rtl $(NEATEN_LIB)/Makefile
  367. X    @echo Making Neaten package
  368. X    @(cd $(NEATEN_LIB); make -f Makefile)
  369. X    @echo done.
  370. X
  371. Xclean::
  372. X    @echo Cleaning menus...
  373. X    @(cd $(MENU_LIB); make clean)
  374. X    @echo done.
  375. X    rm -f y.tab.h
  376. X
  377. Xnoident::
  378. X    @echo Removing ident lines from awm...
  379. X    @for i in $(SRCS) $(OTHERSRCS) $(HFILES); do \
  380. X    sed -e '/#ident/D' < $$i > /tmp/x.$$i && \
  381. X    mv /tmp/x.$$i $$i ; \
  382. X    done
  383. X    @(cd $(MENU_LIB); make noident)
  384. X    @echo done.
  385. END_OF_FILE
  386. if test 2988 -ne `wc -c <'Imakefile'`; then
  387.     echo shar: \"'Imakefile'\" unpacked with wrong size!
  388. fi
  389. # end of 'Imakefile'
  390. fi
  391. if test -f 'Lower.c' -a "${1}" != "-c" ; then 
  392.   echo shar: Will not clobber existing file \"'Lower.c'\"
  393. else
  394. echo shar: Extracting \"'Lower.c'\" \(2800 characters\)
  395. sed "s/^X//" >'Lower.c' <<'END_OF_FILE'
  396. X
  397. X
  398. X
  399. X#ifndef lint
  400. Xstatic char *rcsid_Lower_c = "$Header: /usr/graph2/X11.3/contrib/windowmgrs/awm/RCS/Lower.c,v 1.2 89/02/07 21:22:36 jkh Exp $";
  401. X#endif    lint
  402. X
  403. X#include "X11/copyright.h"
  404. X/*
  405. X *
  406. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  407. X *
  408. X * Copyright 1987 by Jordan Hubbard.
  409. X *
  410. X *
  411. X *                         All Rights Reserved
  412. X *
  413. X * Permission to use, copy, modify, and distribute this software and its
  414. X * documentation for any purpose and without fee is hereby granted,
  415. X * provided that the above copyright notice appear in all copies and that
  416. X * both that copyright notice and this permission notice appear in
  417. X * supporting documentation, and that the name of Ardent Computer
  418. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  419. X * pertaining to distribution of the software without specific, written
  420. X * prior permission.
  421. X *
  422. X */
  423. X
  424. X/*
  425. X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  426. X *
  427. X *                         All Rights Reserved
  428. X *
  429. X * Permission to use, copy, modify, and distribute this software and its
  430. X * documentation for any purpose and without fee is hereby granted,
  431. X * provided that the above copyright notice appear in all copies and that
  432. X * both that copyright notice and this permission notice appear in
  433. X * supporting documentation, and that the name of Digital Equipment
  434. X * Corporation not be used in advertising or publicity pertaining to
  435. X * distribution of the software without specific, written prior permission.
  436. X *
  437. X *
  438. X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  439. X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  440. X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  441. X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  442. X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  443. X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  444. X * SOFTWARE.
  445. X */
  446. X
  447. X/*
  448. X * MODIFICATION HISTORY
  449. X *
  450. X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
  451. X * 001 -- Loretta Guarino Reid, DEC Ultrix Engineering Group,
  452. X * Western Software Lab. Convert to X11.
  453. X * 002 -- Jordan Hubbard, Ardent Computer.
  454. X *  Conversion to awm.
  455. X */
  456. X
  457. X#include "awm.h"
  458. X
  459. X/*ARGSUSED*/
  460. XBoolean Lower(window, mask, button, x, y)
  461. XWindow window;                /* Event window. */
  462. Xint mask;                /* Button/key mask. */
  463. Xint button;                /* Button event detail. */
  464. Xint x, y;                /* Event mouse position. */
  465. X{
  466. X     AwmInfoPtr awi;
  467. X     Entry("Lower")
  468. X
  469. X     awi = GetAwmInfo(window);
  470. X     if (!awi)
  471. X      Leave(FALSE)
  472. X     window = awi->frame ? awi->frame : awi->client;
  473. X     /*
  474. X      * If the window is not the root window, lower the window and return.
  475. X      */
  476. X     if (window != RootWindow(dpy, scr))
  477. X      XLowerWindow(dpy, window);
  478. X     Leave(FALSE)
  479. X}
  480. END_OF_FILE
  481. if test 2800 -ne `wc -c <'Lower.c'`; then
  482.     echo shar: \"'Lower.c'\" unpacked with wrong size!
  483. fi
  484. # end of 'Lower.c'
  485. fi
  486. if test -f 'XError.c' -a "${1}" != "-c" ; then 
  487.   echo shar: Will not clobber existing file \"'XError.c'\"
  488. else
  489. echo shar: Extracting \"'XError.c'\" \(2698 characters\)
  490. sed "s/^X//" >'XError.c' <<'END_OF_FILE'
  491. X
  492. X
  493. X
  494. X#ifndef lint
  495. Xstatic char *rcsid_XError_c = "$Header: /usr/graph2/X11.3/contrib/windowmgrs/awm/RCS/XError.c,v 1.2 89/02/07 21:24:08 jkh Exp $";
  496. X#endif    lint
  497. X
  498. X#include "X11/copyright.h"
  499. X/*
  500. X *
  501. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  502. X *
  503. X * Copyright 1987 by Jordan Hubbard.
  504. X *
  505. X *
  506. X *                         All Rights Reserved
  507. X *
  508. X * Permission to use, copy, modify, and distribute this software and its
  509. X * documentation for any purpose and without fee is hereby granted,
  510. X * provided that the above copyright notice appear in all copies and that
  511. X * both that copyright notice and this permission notice appear in
  512. X * supporting documentation, and that the name of Ardent Computer
  513. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  514. X * pertaining to distribution of the software without specific, written
  515. X * prior permission.
  516. X *
  517. X */
  518. X
  519. X/*
  520. X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  521. X *
  522. X *                         All Rights Reserved
  523. X *
  524. X * Permission to use, copy, modify, and distribute this software and its
  525. X * documentation for any purpose and without fee is hereby granted,
  526. X * provided that the above copyright notice appear in all copies and that
  527. X * both that copyright notice and this permission notice appear in
  528. X * supporting documentation, and that the name of Digital Equipment
  529. X * Corporation not be used in advertising or publicity pertaining to
  530. X * distribution of the software without specific, written prior permission.
  531. X *
  532. X *
  533. X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  534. X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  535. X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  536. X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  537. X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  538. X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  539. X * SOFTWARE.
  540. X */
  541. X
  542. X
  543. X/*
  544. X * MODIFICATION HISTORY
  545. X *
  546. X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
  547. X */
  548. X
  549. X#include "awm.h"
  550. X
  551. X/*ARGSUSED*/
  552. XXError(dpy, rep)
  553. XDisplay *dpy;
  554. XXErrorEvent *rep;
  555. X{
  556. X#ifdef DEBUG
  557. X    char buffer[BUFSIZ];
  558. X    XGetErrorText(dpy, rep->error_code, buffer, BUFSIZ);
  559. X    fprintf(stderr, "awm: X error occurred during a awm operation.\n");
  560. X    fprintf(stderr, "     Description: '%s'\n", buffer);
  561. X    fprintf(stderr, "     Request code: %d\n", rep->request_code);
  562. X    fprintf(stderr, "     Request function: %d\n", rep->func);
  563. X    fprintf(stderr, "     Request window 0x%x\n", rep->window);
  564. X    fprintf(stderr, "     Error Serial #%d\n", rep->serial);
  565. X    fprintf(stderr, "     Current serial #%d\n", dpy->request);
  566. X#endif
  567. X}
  568. END_OF_FILE
  569. if test 2698 -ne `wc -c <'XError.c'`; then
  570.     echo shar: \"'XError.c'\" unpacked with wrong size!
  571. fi
  572. # end of 'XError.c'
  573. fi
  574. if test -f 'bitmaps/hilite.bm' -a "${1}" != "-c" ; then 
  575.   echo shar: Will not clobber existing file \"'bitmaps/hilite.bm'\"
  576. else
  577. echo shar: Extracting \"'bitmaps/hilite.bm'\" \(2202 characters\)
  578. sed "s/^X//" >'bitmaps/hilite.bm' <<'END_OF_FILE'
  579. X/*****************************************************************************/
  580. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  581. X/**                          Salt Lake City, Utah                           **/
  582. X/**                                                                         **/
  583. X/**                           All Rights Reserved                           **/
  584. X/**                                                                         **/
  585. X/**    Permission to use, copy, modify, and distribute this software and    **/
  586. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  587. X/**    granted, provided that the above copyright notice appear  in  all    **/
  588. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  589. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  590. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  591. X/**    city pertaining to distribution  of the software without  specif-    **/
  592. X/**    ic, written prior permission.                                        **/
  593. X/**                                                                         **/
  594. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  595. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  596. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  597. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  598. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  599. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  600. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  601. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  602. X/*****************************************************************************/
  603. X
  604. X#define hilite_width 16
  605. X#define hilite_height 16
  606. Xstatic char hilite_bits[] = {
  607. X   0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  608. X   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  609. X   0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  610. END_OF_FILE
  611. if test 2202 -ne `wc -c <'bitmaps/hilite.bm'`; then
  612.     echo shar: \"'bitmaps/hilite.bm'\" unpacked with wrong size!
  613. fi
  614. # end of 'bitmaps/hilite.bm'
  615. fi
  616. if test -f 'bitmaps/twm.focus.bm' -a "${1}" != "-c" ; then 
  617.   echo shar: Will not clobber existing file \"'bitmaps/twm.focus.bm'\"
  618. else
  619. echo shar: Extracting \"'bitmaps/twm.focus.bm'\" \(2188 characters\)
  620. sed "s/^X//" >'bitmaps/twm.focus.bm' <<'END_OF_FILE'
  621. X
  622. X/*****************************************************************************/
  623. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  624. X/**                          Salt Lake City, Utah                           **/
  625. X/**                                                                         **/
  626. X/**                           All Rights Reserved                           **/
  627. X/**                                                                         **/
  628. X/**    Permission to use, copy, modify, and distribute this software and    **/
  629. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  630. X/**    granted, provided that the above copyright notice appear  in  all    **/
  631. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  632. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  633. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  634. X/**    city pertaining to distribution  of the software without  specif-    **/
  635. X/**    ic, written prior permission.                                        **/
  636. X/**                                                                         **/
  637. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  638. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  639. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  640. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  641. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  642. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  643. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  644. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  645. X/*****************************************************************************/
  646. X
  647. X#define focus_width 16
  648. X#define focus_height 15
  649. Xstatic char focus_bits[] = {
  650. X   0xff, 0x7f, 0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0xfd, 0x5f, 0x55, 0x55,
  651. X   0xfd, 0x5f, 0x55, 0x55, 0xfd, 0x5f, 0x05, 0x50, 0xfd, 0x5f, 0x01, 0x40,
  652. X   0x01, 0x40, 0x01, 0x40, 0xff, 0x7f};
  653. END_OF_FILE
  654. if test 2188 -ne `wc -c <'bitmaps/twm.focus.bm'`; then
  655.     echo shar: \"'bitmaps/twm.focus.bm'\" unpacked with wrong size!
  656. fi
  657. # end of 'bitmaps/twm.focus.bm'
  658. fi
  659. if test -f 'bitmaps/twm.hilite.bm' -a "${1}" != "-c" ; then 
  660.   echo shar: Will not clobber existing file \"'bitmaps/twm.hilite.bm'\"
  661. else
  662. echo shar: Extracting \"'bitmaps/twm.hilite.bm'\" \(2202 characters\)
  663. sed "s/^X//" >'bitmaps/twm.hilite.bm' <<'END_OF_FILE'
  664. X/*****************************************************************************/
  665. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  666. X/**                          Salt Lake City, Utah                           **/
  667. X/**                                                                         **/
  668. X/**                           All Rights Reserved                           **/
  669. X/**                                                                         **/
  670. X/**    Permission to use, copy, modify, and distribute this software and    **/
  671. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  672. X/**    granted, provided that the above copyright notice appear  in  all    **/
  673. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  674. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  675. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  676. X/**    city pertaining to distribution  of the software without  specif-    **/
  677. X/**    ic, written prior permission.                                        **/
  678. X/**                                                                         **/
  679. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  680. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  681. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  682. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  683. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  684. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  685. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  686. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  687. X/*****************************************************************************/
  688. X
  689. X#define hilite_width 16
  690. X#define hilite_height 16
  691. Xstatic char hilite_bits[] = {
  692. X   0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  693. X   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  694. X   0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  695. END_OF_FILE
  696. if test 2202 -ne `wc -c <'bitmaps/twm.hilite.bm'`; then
  697.     echo shar: \"'bitmaps/twm.hilite.bm'\" unpacked with wrong size!
  698. fi
  699. # end of 'bitmaps/twm.hilite.bm'
  700. fi
  701. if test -f 'bitmaps/twm.iconify.bm' -a "${1}" != "-c" ; then 
  702.   echo shar: Will not clobber existing file \"'bitmaps/twm.iconify.bm'\"
  703. else
  704. echo shar: Extracting \"'bitmaps/twm.iconify.bm'\" \(2194 characters\)
  705. sed "s/^X//" >'bitmaps/twm.iconify.bm' <<'END_OF_FILE'
  706. X
  707. X/*****************************************************************************/
  708. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  709. X/**                          Salt Lake City, Utah                           **/
  710. X/**                                                                         **/
  711. X/**                           All Rights Reserved                           **/
  712. X/**                                                                         **/
  713. X/**    Permission to use, copy, modify, and distribute this software and    **/
  714. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  715. X/**    granted, provided that the above copyright notice appear  in  all    **/
  716. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  717. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  718. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  719. X/**    city pertaining to distribution  of the software without  specif-    **/
  720. X/**    ic, written prior permission.                                        **/
  721. X/**                                                                         **/
  722. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  723. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  724. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  725. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  726. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  727. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  728. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  729. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  730. X/*****************************************************************************/
  731. X
  732. X#define iconify_width 16
  733. X#define iconify_height 15
  734. Xstatic char iconify_bits[] = {
  735. X   0xff, 0x7f, 0x01, 0x40, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f,
  736. X   0x7d, 0x5f, 0x01, 0x40, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f,
  737. X   0x7d, 0x5f, 0x01, 0x40, 0xff, 0x7f};
  738. END_OF_FILE
  739. if test 2194 -ne `wc -c <'bitmaps/twm.iconify.bm'`; then
  740.     echo shar: \"'bitmaps/twm.iconify.bm'\" unpacked with wrong size!
  741. fi
  742. # end of 'bitmaps/twm.iconify.bm'
  743. fi
  744. if test -f 'bitmaps/twm.pull.bm' -a "${1}" != "-c" ; then 
  745.   echo shar: Will not clobber existing file \"'bitmaps/twm.pull.bm'\"
  746. else
  747. echo shar: Extracting \"'bitmaps/twm.pull.bm'\" \(2197 characters\)
  748. sed "s/^X//" >'bitmaps/twm.pull.bm' <<'END_OF_FILE'
  749. X
  750. X/*****************************************************************************/
  751. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  752. X/**                          Salt Lake City, Utah                           **/
  753. X/**                                                                         **/
  754. X/**                           All Rights Reserved                           **/
  755. X/**                                                                         **/
  756. X/**    Permission to use, copy, modify, and distribute this software and    **/
  757. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  758. X/**    granted, provided that the above copyright notice appear  in  all    **/
  759. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  760. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  761. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  762. X/**    city pertaining to distribution  of the software without  specif-    **/
  763. X/**    ic, written prior permission.                                        **/
  764. X/**                                                                         **/
  765. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  766. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  767. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  768. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  769. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  770. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  771. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  772. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  773. X/*****************************************************************************/
  774. X
  775. X#define pull_width 16
  776. X#define pull_height 16
  777. Xstatic char pull_bits[] = {
  778. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x1c, 0xff, 0x3f,
  779. X   0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0xff, 0x3f, 0x00, 0x1c, 0x00, 0x0c,
  780. X   0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  781. END_OF_FILE
  782. if test 2197 -ne `wc -c <'bitmaps/twm.pull.bm'`; then
  783.     echo shar: \"'bitmaps/twm.pull.bm'\" unpacked with wrong size!
  784. fi
  785. # end of 'bitmaps/twm.pull.bm'
  786. fi
  787. if test -f 'bitmaps/twm.resize.bm' -a "${1}" != "-c" ; then 
  788.   echo shar: Will not clobber existing file \"'bitmaps/twm.resize.bm'\"
  789. else
  790. echo shar: Extracting \"'bitmaps/twm.resize.bm'\" \(2191 characters\)
  791. sed "s/^X//" >'bitmaps/twm.resize.bm' <<'END_OF_FILE'
  792. X
  793. X/*****************************************************************************/
  794. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  795. X/**                          Salt Lake City, Utah                           **/
  796. X/**                                                                         **/
  797. X/**                           All Rights Reserved                           **/
  798. X/**                                                                         **/
  799. X/**    Permission to use, copy, modify, and distribute this software and    **/
  800. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  801. X/**    granted, provided that the above copyright notice appear  in  all    **/
  802. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  803. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  804. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  805. X/**    city pertaining to distribution  of the software without  specif-    **/
  806. X/**    ic, written prior permission.                                        **/
  807. X/**                                                                         **/
  808. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  809. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  810. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  811. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  812. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  813. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  814. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  815. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  816. X/*****************************************************************************/
  817. X
  818. X#define resize_width 16
  819. X#define resize_height 15
  820. Xstatic char resize_bits[] = {
  821. X   0xff, 0x7f, 0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0xff, 0x47, 0x01, 0x44,
  822. X   0x01, 0x44, 0x01, 0x44, 0x7f, 0x44, 0x41, 0x44, 0x41, 0x44, 0x41, 0x44,
  823. X   0x41, 0x44, 0x41, 0x44, 0xff, 0x7f};
  824. END_OF_FILE
  825. if test 2191 -ne `wc -c <'bitmaps/twm.resize.bm'`; then
  826.     echo shar: \"'bitmaps/twm.resize.bm'\" unpacked with wrong size!
  827. fi
  828. # end of 'bitmaps/twm.resize.bm'
  829. fi
  830. if test -f 'bitmaps/twm.twm.bm' -a "${1}" != "-c" ; then 
  831.   echo shar: Will not clobber existing file \"'bitmaps/twm.twm.bm'\"
  832. else
  833. echo shar: Extracting \"'bitmaps/twm.twm.bm'\" \(2556 characters\)
  834. sed "s/^X//" >'bitmaps/twm.twm.bm' <<'END_OF_FILE'
  835. X/*****************************************************************************/
  836. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  837. X/**                          Salt Lake City, Utah                           **/
  838. X/**                                                                         **/
  839. X/**                           All Rights Reserved                           **/
  840. X/**                                                                         **/
  841. X/**    Permission to use, copy, modify, and distribute this software and    **/
  842. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  843. X/**    granted, provided that the above copyright notice appear  in  all    **/
  844. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  845. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  846. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  847. X/**    city pertaining to distribution  of the software without  specif-    **/
  848. X/**    ic, written prior permission.                                        **/
  849. X/**                                                                         **/
  850. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  851. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  852. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  853. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  854. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  855. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  856. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  857. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  858. X/*****************************************************************************/
  859. X
  860. X#define twm_width 48
  861. X#define twm_height 15
  862. Xstatic char twm_bits[] = {
  863. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x0f,
  864. X   0xfe, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00,
  865. X   0xc0, 0x0c, 0x0c, 0xcc, 0xc0, 0x00, 0xc0, 0x0c, 0x0c, 0xcc, 0xc0, 0x00,
  866. X   0x60, 0x18, 0x1e, 0xe6, 0xe1, 0x01, 0x60, 0x18, 0x1e, 0xe6, 0xe1, 0x01,
  867. X   0x30, 0x30, 0x33, 0x33, 0x33, 0x03, 0x30, 0x30, 0x33, 0x33, 0x33, 0x03,
  868. X   0x18, 0xe0, 0xe1, 0x19, 0x1e, 0x06, 0x18, 0xe0, 0xe1, 0x19, 0x1e, 0x06,
  869. X   0x0c, 0xc0, 0xc0, 0x0c, 0x0c, 0x0c, 0x0c, 0xc0, 0xc0, 0x0c, 0x0c, 0x0c,
  870. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  871. END_OF_FILE
  872. if test 2556 -ne `wc -c <'bitmaps/twm.twm.bm'`; then
  873.     echo shar: \"'bitmaps/twm.twm.bm'\" unpacked with wrong size!
  874. fi
  875. # end of 'bitmaps/twm.twm.bm'
  876. fi
  877. if test -f 'errHndlr.c' -a "${1}" != "-c" ; then 
  878.   echo shar: Will not clobber existing file \"'errHndlr.c'\"
  879. else
  880. echo shar: Extracting \"'errHndlr.c'\" \(2577 characters\)
  881. sed "s/^X//" >'errHndlr.c' <<'END_OF_FILE'
  882. X
  883. X#ifndef lint
  884. Xstatic char *rcsid_errHndlr_c = "$Header: /usr/graph2/X11.3/contrib/windowmgrs/awm/RCS/errHndlr.c,v 1.2 89/02/07 21:24:38 jkh Exp $";
  885. X#endif  lint
  886. X
  887. X#include "X11/copyright.h"
  888. X/*
  889. X *
  890. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  891. X *
  892. X * Copyright 1987 by Jordan Hubbard.
  893. X *
  894. X *
  895. X *                         All Rights Reserved
  896. X *
  897. X * Permission to use, copy, modify, and distribute this software and its
  898. X * documentation for any purpose and without fee is hereby granted,
  899. X * provided that the above copyright notice appear in all copies and that
  900. X * both that copyright notice and this permission notice appear in
  901. X * supporting documentation, and that the name of Ardent Computer
  902. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  903. X * pertaining to distribution of the software without specific, written
  904. X * prior permission.
  905. X *
  906. X */
  907. X
  908. X#include <stdio.h>
  909. X#include "X11/Xlib.h"
  910. X
  911. Xint errorStatus = False;
  912. X
  913. X#ifdef DEBUG
  914. Xvoid debug(s, x1, x2, x3, x4, x5, x6, x7, x8)
  915. Xchar *s;
  916. Xlong x1, x2, x3, x4, x5, x6, x7, x8;
  917. X{
  918. X    static FILE *con = 0;
  919. X
  920. X    if (!con)
  921. X        con = fopen("/dev/console", "w");
  922. X    fprintf(con, s, x1, x2, x3, x4, x5, x6, x7, x8);
  923. X}
  924. X#endif
  925. X
  926. X/*ARGSUSED*/
  927. Xint ErrorHandler (dpy, event)
  928. X    Display *dpy;
  929. X    XErrorEvent *event;
  930. X{
  931. X#ifdef DEBUG
  932. X    char *buffer[BUFSIZ];
  933. X    XGetErrorText(dpy, event->error_code, buffer, BUFSIZ);
  934. X    (void) debug("Hey!\n");
  935. X    (void) debug("X Error: %s\n", buffer);
  936. X    (void) debug("  Request Major code: %d\n", event->request_code);
  937. X    (void) debug("  Request Minor code: %d\n", event->minor_code);
  938. X    (void) debug("  ResourceId 0x%x\n", event->resourceid);
  939. X    (void) debug("  Error Serial #%d\n", event->serial);
  940. X    (void) debug("  Current Serial #%d\n", dpy->request);
  941. X#endif
  942. X    errorStatus = True;
  943. X    return 0;
  944. X}
  945. X
  946. Xstatic char *eventname[] = {
  947. X    "zero",
  948. X    "one",
  949. X    "KeyPress",
  950. X    "KeyRelease",
  951. X    "ButtonPress",
  952. X    "ButtonRelease",
  953. X    "MotionNotify",
  954. X    "EnterNotify",
  955. X    "LeaveNotify",
  956. X    "FocusIn",
  957. X    "FocusOut",
  958. X    "KeymapNotify",
  959. X    "Expose",
  960. X    "GraphicsExpose",
  961. X    "NoExpose",
  962. X    "VisibilityNotify",
  963. X    "CreateNotify",
  964. X    "DestroyNotify",
  965. X    "UnmapNotify",
  966. X    "MapNotify",
  967. X    "MapRequest",
  968. X    "ReparentNotify",
  969. X    "ConfigureNotify",
  970. X    "ConfigureRequest",
  971. X    "GravityNotify",
  972. X    "ResizeRequest",
  973. X    "CirculateNotify",
  974. X    "CirculateRequest",
  975. X    "PropertyNotify",
  976. X    "SelectionClear",
  977. X    "SelectionRequest",
  978. X    "SelectionNotify",
  979. X    "ColormapNotify",
  980. X    "ClientMessage",
  981. X    "MappingNotify",
  982. X};
  983. X
  984. Xvoid print_event_info(s, ev)
  985. Xchar *s;
  986. XXEvent *ev;
  987. X{
  988. X    fprintf(stderr, "%s: EVENT %s(%d) on %x\n", s, eventname[ev->type],
  989. X      ev->type, ev->xany.window);
  990. X}
  991. END_OF_FILE
  992. if test 2577 -ne `wc -c <'errHndlr.c'`; then
  993.     echo shar: \"'errHndlr.c'\" unpacked with wrong size!
  994. fi
  995. # end of 'errHndlr.c'
  996. fi
  997. if test -f 'lex.l' -a "${1}" != "-c" ; then 
  998.   echo shar: Will not clobber existing file \"'lex.l'\"
  999. else
  1000. echo shar: Extracting \"'lex.l'\" \(2334 characters\)
  1001. sed "s/^X//" >'lex.l' <<'END_OF_FILE'
  1002. X%{
  1003. X
  1004. X
  1005. X#include <X11/copyright.h>
  1006. X
  1007. X
  1008. X/*
  1009. X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  1010. X *
  1011. X *                         All Rights Reserved
  1012. X *
  1013. X * Permission to use, copy, modify, and distribute this software and its
  1014. X * documentation for any purpose and without fee is hereby granted,
  1015. X * provided that the above copyright notice appear in all copies and that
  1016. X * both that copyright notice and this permission notice appear in
  1017. X * supporting documentation, and that the name of Digital Equipment
  1018. X * Corporation not be used in advertising or publicity pertaining to
  1019. X * distribution of the software without specific, written prior permission.
  1020. X *
  1021. X *
  1022. X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  1023. X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  1024. X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  1025. X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  1026. X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  1027. X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  1028. X * SOFTWARE.
  1029. X */
  1030. X
  1031. X
  1032. X
  1033. X/*
  1034. X * MODIFICATION HISTORY
  1035. X *
  1036. X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
  1037. X * 001 -- Jordan Hubbard, Ardent Computer
  1038. X *  Handle comments differently.
  1039. X */
  1040. X
  1041. X#include "y.tab.h"
  1042. X#include "X11/Xos.h"
  1043. X
  1044. X#undef    YYLMAX
  1045. X
  1046. X#ifdef    LEXBUFSIZ
  1047. X#define YYLMAX    LEXBUFSIZ
  1048. X#else
  1049. X#define YYLMAX    1024
  1050. X#endif
  1051. X
  1052. Xchar *dequote();
  1053. Xchar *stash();
  1054. X
  1055. Xextern int Lineno;
  1056. X
  1057. X%}
  1058. XW    [ \t]+
  1059. X%%
  1060. X
  1061. X#.*\n                { return(COMMENT); }    /* Comments. */
  1062. X\\\n                { Lineno++; }        /* Continuation. */
  1063. X{W}                { ; }    /* Whitespace. */
  1064. X[^ \"\t\n#=\^\!\|\(\)\[\]\{\}:;]+    { yylval.sval=stash(yytext);return(STRING); }
  1065. X\"[^\"]*\"            { yylval.sval=stash(dequote(yytext));
  1066. X                  return(STRING); }
  1067. X\n                { return(NL); }
  1068. X.                { return(*yytext); }
  1069. X
  1070. X%%
  1071. X
  1072. X/*
  1073. X * Remove the quotes enclosing a quoted string.
  1074. X */
  1075. Xchar *
  1076. Xdequote(s)
  1077. Xchar *s;
  1078. X{
  1079. X    char *p;
  1080. X
  1081. X    ++s;
  1082. X    p = rindex(s, '"');
  1083. X    *p = '\0';
  1084. X    return(s);
  1085. X}
  1086. X
  1087. X/*
  1088. X * Save string away in memory and return a pointer to it.  If
  1089. X * no space could be found, quit with a fatal error.
  1090. X */
  1091. Xchar *stash(s)
  1092. Xchar *s;
  1093. X{
  1094. X    char *ptr;
  1095. X    char *malloc();
  1096. X
  1097. X    if (!s || !strlen(s))
  1098. X    return(NULL);
  1099. X    ptr = malloc(strlen(s) + 1);
  1100. X    if (ptr == NULL) {
  1101. X        Error("out of space");
  1102. X    }
  1103. X    return(strcpy(ptr, s));
  1104. X}
  1105. END_OF_FILE
  1106. if test 2334 -ne `wc -c <'lex.l'`; then
  1107.     echo shar: \"'lex.l'\" unpacked with wrong size!
  1108. fi
  1109. # end of 'lex.l'
  1110. fi
  1111. if test -f 'menus/eventstack.c' -a "${1}" != "-c" ; then 
  1112.   echo shar: Will not clobber existing file \"'menus/eventstack.c'\"
  1113. else
  1114. echo shar: Extracting \"'menus/eventstack.c'\" \(2636 characters\)
  1115. sed "s/^X//" >'menus/eventstack.c' <<'END_OF_FILE'
  1116. X
  1117. X#ifndef lint
  1118. X     static char sccs_id[] = "@(#)eventstack.c    2.1 12/16/87  Siemens Corporate Research and Support, Inc.";
  1119. X#endif
  1120. X
  1121. X
  1122. X/* 
  1123. X  RTL Menu Package Version 1.0
  1124. X  by Joe Camaratta and Mike Berman, Siemens RTL, Princeton NJ, 1987
  1125. X  
  1126. X  eventstack.c: stack implementation for X events
  1127. X  */
  1128. X
  1129. X#include "X11/copyright.h"
  1130. X/*
  1131. X *
  1132. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  1133. X *
  1134. X * Copyright 1987 by Jordan Hubbard.
  1135. X *
  1136. X *
  1137. X *                         All Rights Reserved
  1138. X *
  1139. X * Permission to use, copy, modify, and distribute this software and its
  1140. X * documentation for any purpose and without fee is hereby granted,
  1141. X * provided that the above copyright notice appear in all copies and that
  1142. X * both that copyright notice and this permission notice appear in
  1143. X * supporting documentation, and that the name of Ardent Computer
  1144. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  1145. X * pertaining to distribution of the software without specific, written
  1146. X * prior permission.
  1147. X *
  1148. X */
  1149. X
  1150. X/*
  1151. X  
  1152. X  Copyright 1987 by
  1153. X  Siemens Corporate Research and Support, Inc., Princeton, New Jersey
  1154. X  
  1155. X  Permission to use, copy, modify, and distribute this software
  1156. X  and its documentation for any purpose and without fee is
  1157. X  hereby granted, provided that the above copyright notice
  1158. X  appear in all copies and that both that copyright notice and
  1159. X  this permission notice appear in supporting documentation, and
  1160. X  that the name of Siemens not be used in advertising or
  1161. X  publicity pertaining to distribution of the software without
  1162. X  specific, written prior permission.  Siemens makes no
  1163. X  representations about the suitability of this software for any
  1164. X  purpose.  It is provided "as is" without express or implied
  1165. X  warranty.
  1166. X  
  1167. X  Almost totally re-written by Jordan Hubbard, Ardent computer corp.
  1168. X  Previous code did not pass more strict compilers.
  1169. X  */
  1170. X
  1171. X#include <stdio.h>
  1172. X#include "dbug.h"
  1173. X#include "X11/Xlib.h"
  1174. X#include "eventstack.h"
  1175. X
  1176. Xextern char *malloc();
  1177. X
  1178. Xvoid PushEvent(event, Eq)
  1179. XXEvent *event;
  1180. Xstruct Ev_q **Eq;
  1181. X{
  1182. X     struct Ev_q *ptr;
  1183. X     Entry("PushEvent")
  1184. X     
  1185. X     if (!*Eq) {
  1186. X      *Eq = ptr = (struct Ev_q *)malloc(sizeof(struct Ev_q));
  1187. X      ptr->prev = 0;
  1188. X     }
  1189. X     else {
  1190. X      ptr = (struct Ev_q *)malloc(sizeof(struct Ev_q));
  1191. X      ptr->prev = *Eq;
  1192. X      *Eq = ptr;
  1193. X     }
  1194. X     ptr->event = (XEvent *)malloc(sizeof(XEvent));
  1195. X     bcopy(ptr->event, event, sizeof(XEvent));
  1196. X     Leave_void
  1197. X}
  1198. X
  1199. XXEvent *PopEvent(Eq)
  1200. Xstruct Ev_q **Eq;
  1201. X{
  1202. X     struct Ev_q *ptr;
  1203. X     
  1204. X     Entry("PopEvent")
  1205. X
  1206. X     if (*Eq) {
  1207. X      ptr = *Eq;
  1208. X      *Eq = ptr->prev;
  1209. X      free(ptr);
  1210. X      Leave(ptr->event)
  1211. X     }
  1212. X     else
  1213. X      Leave((XEvent *)0)
  1214. X}
  1215. END_OF_FILE
  1216. if test 2636 -ne `wc -c <'menus/eventstack.c'`; then
  1217.     echo shar: \"'menus/eventstack.c'\" unpacked with wrong size!
  1218. fi
  1219. # end of 'menus/eventstack.c'
  1220. fi
  1221. if test -f 'menus/null_icon.h' -a "${1}" != "-c" ; then 
  1222.   echo shar: Will not clobber existing file \"'menus/null_icon.h'\"
  1223. else
  1224. echo shar: Extracting \"'menus/null_icon.h'\" \(103 characters\)
  1225. sed "s/^X//" >'menus/null_icon.h' <<'END_OF_FILE'
  1226. X
  1227. X#define null_icon_width 1
  1228. X#define null_icon_height 1
  1229. Xstatic char null_icon_bits[] = 
  1230. X{
  1231. X    0x00
  1232. X};
  1233. X
  1234. X
  1235. X
  1236. END_OF_FILE
  1237. if test 103 -ne `wc -c <'menus/null_icon.h'`; then
  1238.     echo shar: \"'menus/null_icon.h'\" unpacked with wrong size!
  1239. fi
  1240. # end of 'menus/null_icon.h'
  1241. fi
  1242. if test -f 'menus/rtlmenu.h' -a "${1}" != "-c" ; then 
  1243.   echo shar: Will not clobber existing file \"'menus/rtlmenu.h'\"
  1244. else
  1245. echo shar: Extracting \"'menus/rtlmenu.h'\" \(2075 characters\)
  1246. sed "s/^X//" >'menus/rtlmenu.h' <<'END_OF_FILE'
  1247. X
  1248. X/*
  1249. X#ifndef lint
  1250. Xstatic char sccs_id[] = "@(#)rtlmenu.h    2.1 12/16/87  Siemens Corporate Research and Support, Inc.";
  1251. X#endif
  1252. X*/
  1253. X
  1254. X
  1255. X/* 
  1256. X  RTL Menu Package Version 1.0
  1257. X  by Joe Camaratta and Mike Berman, Siemens RTL, Princeton NJ, 1987
  1258. X
  1259. X  rtlmenu.h: definitions for rtlmenu user
  1260. X*/
  1261. X
  1262. X#include "X11/copyright.h"
  1263. X/*
  1264. X *
  1265. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  1266. X *
  1267. X * Copyright 1987 by Jordan Hubbard.
  1268. X *
  1269. X *
  1270. X *                         All Rights Reserved
  1271. X *
  1272. X * Permission to use, copy, modify, and distribute this software and its
  1273. X * documentation for any purpose and without fee is hereby granted,
  1274. X * provided that the above copyright notice appear in all copies and that
  1275. X * both that copyright notice and this permission notice appear in
  1276. X * supporting documentation, and that the name of Ardent Computer
  1277. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  1278. X * pertaining to distribution of the software without specific, written
  1279. X * prior permission.
  1280. X *
  1281. X */
  1282. X
  1283. X/*
  1284. X
  1285. XCopyright 1987 by
  1286. X    Siemens Corporate Research and Support, Inc., Princeton, New Jersey
  1287. X
  1288. XPermission to use, copy, modify, and distribute this software
  1289. Xand its documentation for any purpose and without fee is
  1290. Xhereby granted, provided that the above copyright notice
  1291. Xappear in all copies and that both that copyright notice and
  1292. Xthis permission notice appear in supporting documentation, and
  1293. Xthat the name of Siemens not be used in advertising or
  1294. Xpublicity pertaining to distribution of the software without
  1295. Xspecific, written prior permission.  Siemens makes no
  1296. Xrepresentations about the suitability of this software for any
  1297. Xpurpose.  It is provided "as is" without express or implied
  1298. Xwarranty.
  1299. X
  1300. X*/
  1301. X
  1302. X#ifndef RTL_INCLUDE
  1303. X#define RTL_INCLUDE
  1304. X#include "std_defs.h"
  1305. X
  1306. Xstruct _RTLPoint
  1307. X{
  1308. X    int x, y;
  1309. X};
  1310. X
  1311. Xtypedef struct _RTLPoint RTLPoint;
  1312. Xtypedef pointer RTLMenu;
  1313. Xtypedef pointer RTLMenuItem;    
  1314. X
  1315. XRTLMenu RTLMenu_Create();
  1316. XRTLMenuItem RTLMenu_Append_Call();
  1317. XRTLMenuItem RTLMenu_Append_Checkback();
  1318. XRTLMenuItem RTLMenu_Append_Submenu();
  1319. X
  1320. X#include "rtlmnu.opt.h"
  1321. X#endif RTL_INCLUDE
  1322. END_OF_FILE
  1323. if test 2075 -ne `wc -c <'menus/rtlmenu.h'`; then
  1324.     echo shar: \"'menus/rtlmenu.h'\" unpacked with wrong size!
  1325. fi
  1326. # end of 'menus/rtlmenu.h'
  1327. fi
  1328. if test -f 'menus/std_defs.h' -a "${1}" != "-c" ; then 
  1329.   echo shar: Will not clobber existing file \"'menus/std_defs.h'\"
  1330. else
  1331. echo shar: Extracting \"'menus/std_defs.h'\" \(2338 characters\)
  1332. sed "s/^X//" >'menus/std_defs.h' <<'END_OF_FILE'
  1333. X
  1334. X/*
  1335. X#ifndef lint
  1336. Xstatic char sccs_id[] = "@(#)std_defs.h    2.5  4/13/87 Copyright (c) 1987, Siemens Corporate Research and Support, Inc.";
  1337. X#endif
  1338. X*/
  1339. X
  1340. X
  1341. X/* 
  1342. X  RTL Menu Package Version 1.0
  1343. X  by Joe Camaratta and Mike Berman, Siemens RTL, Princeton NJ, 1987
  1344. X
  1345. X  std_defs.h: standard definitions shared among menu programs.
  1346. X*/
  1347. X
  1348. X#include <X11/copyright.h>
  1349. X/*
  1350. X *
  1351. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  1352. X *
  1353. X * Copyright 1987 by Jordan Hubbard.
  1354. X *
  1355. X *
  1356. X *                         All Rights Reserved
  1357. X *
  1358. X * Permission to use, copy, modify, and distribute this software and its
  1359. X * documentation for any purpose and without fee is hereby granted,
  1360. X * provided that the above copyright notice appear in all copies and that
  1361. X * both that copyright notice and this permission notice appear in
  1362. X * supporting documentation, and that the name of Ardent Computer
  1363. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  1364. X * pertaining to distribution of the software without specific, written
  1365. X * prior permission.
  1366. X *
  1367. X */
  1368. X
  1369. X/*
  1370. X
  1371. XCopyright 1987 by
  1372. X    Siemens Corporate Research and Support, Inc., Princeton, New Jersey
  1373. X
  1374. XPermission to use, copy, modify, and distribute this
  1375. Xsoftware and its documentation for any purpose and without
  1376. Xfee is hereby granted, provided that the above copyright
  1377. Xnotice appear in all copies and that both that copyright
  1378. Xnotice and this permission notice appear in supporting
  1379. Xdocumentation, and that the name of Siemens not be used in
  1380. Xadvertising or publicity pertaining to distribution of the
  1381. Xsoftware without specific, written prior permission.
  1382. XSiemens makes no representations about the suitability of
  1383. Xthis software for any purpose.  It is provided "as is"
  1384. Xwithout express or implied warranty.
  1385. X
  1386. X*/
  1387. X
  1388. X
  1389. X#ifndef STD_DEFS
  1390. X#define STD_DEFS
  1391. X
  1392. X#include <X11/Intrinsic.h>
  1393. X
  1394. X/*    useful macros
  1395. X */
  1396. Xtypedef char *pointer;
  1397. X
  1398. Xextern char *malloc();
  1399. X#define  allocate(type, quan)    ( (type *) malloc(sizeof(type) * (quan)) )
  1400. X
  1401. X#define  FOREVER        for (;;)
  1402. X
  1403. X
  1404. X/*    initial pointer value
  1405. X */
  1406. X#ifndef  NULL
  1407. X#define  NULL        0
  1408. X#endif
  1409. X
  1410. X#ifndef  TRUE
  1411. X#define  TRUE        1
  1412. X#endif
  1413. X
  1414. X#ifndef  FALSE
  1415. X#define  FALSE        0
  1416. X#endif
  1417. X
  1418. X/*    VoidFunc type definition
  1419. X */
  1420. Xtypedef void        (*VoidFunc)();
  1421. X
  1422. X
  1423. X/*    minimal error status return values
  1424. X */
  1425. X#define  SUCCESS     0
  1426. X#define  FAILURE    -1
  1427. X
  1428. X#define ABS(val)  \
  1429. X    ( ( (val) < 0 ) ? -(val) : (val) ) 
  1430. X
  1431. X#endif
  1432. END_OF_FILE
  1433. if test 2338 -ne `wc -c <'menus/std_defs.h'`; then
  1434.     echo shar: \"'menus/std_defs.h'\" unpacked with wrong size!
  1435. fi
  1436. # end of 'menus/std_defs.h'
  1437. fi
  1438. if test -f 'support.c' -a "${1}" != "-c" ; then 
  1439.   echo shar: Will not clobber existing file \"'support.c'\"
  1440. else
  1441. echo shar: Extracting \"'support.c'\" \(2427 characters\)
  1442. sed "s/^X//" >'support.c' <<'END_OF_FILE'
  1443. X
  1444. X
  1445. X
  1446. X#ifndef lint
  1447. Xstatic char *rcsid_support_c = "$Header: /usr/graph2/X11.3/contrib/windowmgrs/awm/RCS/support.c,v 1.2 89/02/07 21:25:47 jkh Exp $";
  1448. X#endif  lint
  1449. X
  1450. X#include "X11/copyright.h"
  1451. X/*
  1452. X *
  1453. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  1454. X *
  1455. X * Copyright 1987 by Jordan Hubbard.
  1456. X *
  1457. X *
  1458. X *                         All Rights Reserved
  1459. X *
  1460. X * Permission to use, copy, modify, and distribute this software and its
  1461. X * documentation for any purpose and without fee is hereby granted,
  1462. X * provided that the above copyright notice appear in all copies and that
  1463. X * both that copyright notice and this permission notice appear in
  1464. X * supporting documentation, and that the name of Ardent Computer
  1465. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  1466. X * pertaining to distribution of the software without specific, written
  1467. X * prior permission.
  1468. X *
  1469. X * REVISION HISTORY:
  1470. X *
  1471. X * 1.2 -- Version of strlen() that accepts NULL strings added (#ifdef it
  1472. X * in if your system needs it).
  1473. X */
  1474. X
  1475. X#include "support.h"
  1476. X#include <stdio.h>
  1477. X     
  1478. Xint _rtn_level;
  1479. Xint _rtn_trace;
  1480. X
  1481. Xstatic struct func_stack {
  1482. X     char *rtn_name;
  1483. X     struct func_stack *next;
  1484. X} *Head;
  1485. X
  1486. Xchar *curr_rtn()
  1487. X{
  1488. X     if (!Head)
  1489. X      return((char *)0);
  1490. X     else
  1491. X      return(Head->rtn_name);
  1492. X}
  1493. X
  1494. Xvoid push_rtn(s)
  1495. Xregister char *s;
  1496. X{
  1497. X     if (!Head) {
  1498. X      Head = (struct func_stack *)malloc(sizeof(struct func_stack));
  1499. X      if (!Head) {
  1500. X           fprintf(stderr, "Couldn't malloc new func_stack entry!\n");
  1501. X           exit(1);
  1502. X      }
  1503. X      Head->rtn_name = s;
  1504. X      Head->next = 0;
  1505. X     }
  1506. X     else {
  1507. X      struct func_stack *ptr;
  1508. X      
  1509. X      ptr =  (struct func_stack *)malloc(sizeof(struct func_stack));
  1510. X      if (!ptr) {
  1511. X           fprintf(stderr, "Couldn't malloc new func_stack entry!\n");
  1512. X           exit(1);
  1513. X      }
  1514. X      ptr->rtn_name = s;
  1515. X      ptr->next = Head;
  1516. X      Head = ptr;
  1517. X     }
  1518. X     _rtn_level++;
  1519. X     if (_rtn_trace) {
  1520. X      int i;
  1521. X      
  1522. X      for (i = 0; i < _rtn_level; i++)
  1523. X           putchar('\t');
  1524. X      printf("%s(%d)\n", Head->rtn_name, _rtn_level);
  1525. X     }
  1526. X}
  1527. X
  1528. Xvoid pop_rtn()
  1529. X{
  1530. X     struct func_stack *ptr;
  1531. X
  1532. X     if (!Head)
  1533. X      return;
  1534. X     ptr = Head;
  1535. X     Head = Head->next;
  1536. X     free(ptr);
  1537. X     _rtn_level--;
  1538. X}
  1539. X
  1540. X/*
  1541. X * Some systems retch when you pass strlen() a NULL pointer.
  1542. X * Here's a way of getting around it.
  1543. X */
  1544. X
  1545. X#if defined(hlh) || defined(titan)
  1546. Xstrlen(s)
  1547. Xchar *s;
  1548. X{
  1549. X    int count = 0;
  1550. X
  1551. X    if (s == 0)
  1552. X        return(0);
  1553. X    while (*s++)
  1554. X        count++;
  1555. X    return(count);
  1556. X}
  1557. X#endif /* hlh */
  1558. END_OF_FILE
  1559. if test 2427 -ne `wc -c <'support.c'`; then
  1560.     echo shar: \"'support.c'\" unpacked with wrong size!
  1561. fi
  1562. # end of 'support.c'
  1563. fi
  1564. if test -f 'twm.Xdefaults' -a "${1}" != "-c" ; then 
  1565.   echo shar: Will not clobber existing file \"'twm.Xdefaults'\"
  1566. else
  1567. echo shar: Extracting \"'twm.Xdefaults'\" \(613 characters\)
  1568. sed "s/^X//" >'twm.Xdefaults' <<'END_OF_FILE'
  1569. Xawm.icon.font: vtsingle
  1570. Xawm.icon.pixmap: blank.bm
  1571. Xawm.popup.font: fg-22
  1572. Xawm.windowName.offset: 16
  1573. Xawm.title.height: 16
  1574. Xawm.title.font: vtsingle
  1575. Xawm.title.boldFont: vtsingle
  1576. Xawm.title.boldPixmap: twm.hilite.bm
  1577. Xawm.title.push:    false
  1578. Xawm.path:    /usr/src/X.V11R2/clients/awm/bitmaps
  1579. Xawm.delta:    3
  1580. Xawm.freeze:    on
  1581. Xawm.grid:    on
  1582. Xawm.zap:    off
  1583. Xawm.autoraise:    off
  1584. Xawm.hilite:    on
  1585. Xawm.titles:    on
  1586. Xawm.gadgets:    on
  1587. Xawm.wall:    off
  1588. Xawm.warpOnRaise: off
  1589. Xawm.warpOnDeIconify: off
  1590. Xawm.warpOnIconify: off
  1591. Xawm.frameFocus: on
  1592. Xawm.rootResizeBox: on
  1593. Xawm.border.hilite: off
  1594. Xawm.gadget.border: 0
  1595. Xawm.icon.hPad:    2
  1596. Xawm.icon.vPad:    5
  1597. Xawm.volume:    4
  1598. END_OF_FILE
  1599. if test 613 -ne `wc -c <'twm.Xdefaults'`; then
  1600.     echo shar: \"'twm.Xdefaults'\" unpacked with wrong size!
  1601. fi
  1602. # end of 'twm.Xdefaults'
  1603. fi
  1604. echo shar: End of archive 11 \(of 12\).
  1605. cp /dev/null ark11isdone
  1606. MISSING=""
  1607. for I in 1 2 3 4 5 6 7 8 9 10 11 12 ; do
  1608.     if test ! -f ark${I}isdone ; then
  1609.     MISSING="${MISSING} ${I}"
  1610.     fi
  1611. done
  1612. if test "${MISSING}" = "" ; then
  1613.     echo You have unpacked all 12 archives.
  1614.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1615. else
  1616.     echo You still need to unpack the following archives:
  1617.     echo "        " ${MISSING}
  1618. fi
  1619. ##  End of shell archive.
  1620. exit 0
  1621. -- 
  1622. Mike Wexler(wyse!mikew)    Phone: (408)433-1000 x1330
  1623. Moderator of comp.sources.x
  1624.